Skip to content

Conversation

@mwienk
Copy link
Contributor

@mwienk mwienk commented Jan 7, 2026

When a string in the content contains a single escaped double quote, the masking of the string fails in the CSP Nonce handler. This results in an issue with the following parts of the string, causing issues like #667

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

I updated the regex so it matches only true double quotes after the opening quotes. Escaped quotes \" are now included in the placeholder content.

Resolves #667

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@vercel
Copy link

vercel bot commented Jan 7, 2026

@mwienk is attempting to deploy a commit to the Baroshem's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nuxt-security Ready Ready Preview, Comment Jan 16, 2026 7:05am

@Baroshem Baroshem changed the base branch from main to chore/2.5.1 January 16, 2026 07:06
@Baroshem Baroshem merged commit 165a54b into Baroshem:chore/2.5.1 Jan 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blockage of Nuxt inline script

2 participants